package com.jmb.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 
 * @TableName t_mock_hit_policy
 */
@TableName(value ="t_mock_hit_policy")
@Data
public class MockHitPolicy extends BaseEntity{


    /**
     * api_id
     */
    @Schema(description = "接口id")
    @TableField(value = "api_id")
    private Integer apiId;

    /**
     * 0请求头 1请求body 2pathparams 3请求queryparams
     */
    @Schema(description = "匹配范围 0请求头 1请求body 2pathparams 3请求queryparams")
    @TableField(value = "match_scope")
    private Integer matchScope;

    /**
     * 0固定值1包含2正则3jsonschema4xpath5jsonpath
     */
    @Schema(description = "匹配方式 0固定值 1包含 2正则 3jsonschema 4xpath 5jsonpath")
    @TableField(value = "match_type")
    private Integer matchType;

    /**
     * 名称
     */
    @Schema(description = "名称")
    @TableField(value = "name")
    private String name;

    /**
     * 值
     */
    @Schema(description = "值")
    @TableField(value = "value")
    private String value;

    /**
     * 0启用1禁用
     */
    @Schema(description = "0启用 1禁用")
    @TableField(value = "status")
    private Integer status;
}